import javax.swing.JMenu;
import javax.swing.JRadioButtonMenuItem;

/**
 * Title:  View.java
 * Description:  This class is the class to offer a View menu for GUI of group
 * Copyright:    Copyright (c) 2009
 * @author WANG Jiechao
 * @version 1.0
 */
public class View extends JMenu
{
    private JRadioButtonMenuItem rbMenuItem1, rbMenuItem2,rbMenuItem3,rbMenuItem4,rbMenuItem5,rbMenuItem6,rbMenuItem7,rbMenuItem8,rbMenuItem9,rbMenuItem10;


    /**
     * This constructor creat some menu items for menu of view.
     */
    public View()
    {
	super("View");
        this.rbMenuItem1 = new JRadioButtonMenuItem("ToolBar");                       //Create a button to open or close tool bar
        this.rbMenuItem1.setSelected(true); 
        this.rbMenuItem1.setMnemonic(76);
        this.add(this.rbMenuItem1);

        this.rbMenuItem2 = new JRadioButtonMenuItem("Center"); 
        this.rbMenuItem2.setSelected(true);                                           //Create a button to open or close tool bar which is not used
        this.rbMenuItem2.setMnemonic(75);
        this.add(this.rbMenuItem2); 
        
        this.rbMenuItem3 = new JRadioButtonMenuItem("East");                       //Create a button to open or close tool bar
        this.rbMenuItem3.setSelected(false); 
        this.rbMenuItem3.setMnemonic(76);
        //this.add(this.rbMenuItem3);
        
        this.rbMenuItem4 = new JRadioButtonMenuItem("East1");                       //Create a button to open or close tool bar
        this.rbMenuItem4.setSelected(true); 
        this.rbMenuItem4.setMnemonic(76);
        //this.add(this.rbMenuItem4);
        
        this.rbMenuItem5 = new JRadioButtonMenuItem("East2");                       //Create a button to open or close tool bar
        this.rbMenuItem5.setSelected(true); 
        this.rbMenuItem5.setMnemonic(76);
        //this.add(this.rbMenuItem5);
        
        this.rbMenuItem6 = new JRadioButtonMenuItem("East3");                       //Create a button to open or close tool bar
        this.rbMenuItem6.setSelected(true); 
        this.rbMenuItem6.setMnemonic(76);
        //this.add(this.rbMenuItem6);
        
        this.rbMenuItem7 = new JRadioButtonMenuItem("South");                       //Create a button to open or close tool bar
        this.rbMenuItem7.setSelected(true); 
        this.rbMenuItem7.setMnemonic(76);
        this.add(this.rbMenuItem7);
        
        this.rbMenuItem8 = new JRadioButtonMenuItem("South1");                       //Create a button to open or close tool bar
        this.rbMenuItem8.setSelected(true); 
        this.rbMenuItem8.setMnemonic(76);
        //this.add(this.rbMenuItem8);
        
        this.rbMenuItem9 = new JRadioButtonMenuItem("South2");                       //Create a button to open or close tool bar
        this.rbMenuItem9.setSelected(true); 
        this.rbMenuItem9.setMnemonic(76);
        //this.add(this.rbMenuItem9);
        
        this.rbMenuItem10 = new JRadioButtonMenuItem("South3");                       //Create a button to open or close tool bar
        this.rbMenuItem10.setSelected(true); 
        this.rbMenuItem10.setMnemonic(76);
        //this.add(this.rbMenuItem10);
    }
    /**
     * This constructor creat a new JMenu with the supplied string as its text and specified as a tear-off menu or not
     *
     *@param s set the view's name
     *@param b specified as a tear-off menu or not
     *
     */ 
    public View(String s, boolean b) 
    {
	super(s, b);
    }
    /**
     * methods to get RbMenuItem1~10
     */  
    public JRadioButtonMenuItem getRbMenuItem1()
    {
	return rbMenuItem1;
    }

    public JRadioButtonMenuItem getRbMenuItem2()
    {
	return rbMenuItem2;
    }
    
    public JRadioButtonMenuItem getRbMenuItem3()
    {
	return rbMenuItem3;
    }
    
    public JRadioButtonMenuItem getRbMenuItem4()
    {
	return rbMenuItem4;
    }
    
    public JRadioButtonMenuItem getRbMenuItem5()
    {
	return rbMenuItem5;
    }
    
    public JRadioButtonMenuItem getRbMenuItem6()
    {
	return rbMenuItem6;
    }
    
    public JRadioButtonMenuItem getRbMenuItem7()
    {
	return rbMenuItem7;
    }
    
    public JRadioButtonMenuItem getRbMenuItem8()
    {
	return rbMenuItem8;
    }
    
    public JRadioButtonMenuItem getRbMenuItem9()
    {
	return rbMenuItem9;
    }
    
    public JRadioButtonMenuItem getRbMenuItem10()
    {
	return rbMenuItem10;
    }
    

   

}